package com.example.demo.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品信息
 * </p>
 *
 * @author author
 * @since 2025-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shangpinxinxi")
@ApiModel(value="Shangpinxinxi对象", description="商品信息")
public class Shangpinxinxi implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime addtime;

    @ApiModelProperty(value = "商品编号")
    private String shangpinbianhao;

    @ApiModelProperty(value = "商品名称")
    private String shangpinmingcheng;

    @ApiModelProperty(value = "类型")
    private String leixing;

    @ApiModelProperty(value = "数量")
    private Integer shuliang;

    @ApiModelProperty(value = "供货地址")
    private String gonghuodizhi;

    @ApiModelProperty(value = "出厂日期")
    private LocalDate chuchangriqi;

    @ApiModelProperty(value = "保质期")
    private String baozhiqi;

    @ApiModelProperty(value = "商品详情")
    private String shangpinxiangqing;

    @ApiModelProperty(value = "图片")
    private String tupian;

    @ApiModelProperty(value = "赞")
    private Integer thumbsupnum;

    @ApiModelProperty(value = "踩")
    private Integer crazilynum;

    @ApiModelProperty(value = "最近点击时间")
    private LocalDateTime clicktime;

    @ApiModelProperty(value = "点击次数")
    private Integer clicknum;

    @ApiModelProperty(value = "积分")
    private Integer jifen;

    @ApiModelProperty(value = "价格")
    private Float price;


    @Override
    public String toString() {
        return "Shangpinxinxi{" +
                "id=" + id +
                ", addtime=" + addtime +
                ", shangpinbianhao='" + shangpinbianhao + '\'' +
                ", shangpinmingcheng='" + shangpinmingcheng + '\'' +
                ", leixing='" + leixing + '\'' +
                ", shuliang=" + shuliang +
                ", gonghuodizhi='" + gonghuodizhi + '\'' +
                ", chuchangriqi=" + chuchangriqi +
                ", baozhiqi='" + baozhiqi + '\'' +
                ", shangpinxiangqing='" + shangpinxiangqing + '\'' +
                ", tupian='" + tupian + '\'' +
                ", thumbsupnum=" + thumbsupnum +
                ", crazilynum=" + crazilynum +
                ", clicktime=" + clicktime +
                ", clicknum=" + clicknum +
                ", jifen=" + jifen +
                ", price=" + price +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getAddtime() {
        return addtime;
    }

    public void setAddtime(LocalDateTime addtime) {
        this.addtime = addtime;
    }

    public String getShangpinbianhao() {
        return shangpinbianhao;
    }

    public void setShangpinbianhao(String shangpinbianhao) {
        this.shangpinbianhao = shangpinbianhao;
    }

    public String getShangpinmingcheng() {
        return shangpinmingcheng;
    }

    public void setShangpinmingcheng(String shangpinmingcheng) {
        this.shangpinmingcheng = shangpinmingcheng;
    }

    public String getLeixing() {
        return leixing;
    }

    public void setLeixing(String leixing) {
        this.leixing = leixing;
    }

    public Integer getShuliang() {
        return shuliang;
    }

    public void setShuliang(Integer shuliang) {
        this.shuliang = shuliang;
    }

    public String getGonghuodizhi() {
        return gonghuodizhi;
    }

    public void setGonghuodizhi(String gonghuodizhi) {
        this.gonghuodizhi = gonghuodizhi;
    }

    public LocalDate getChuchangriqi() {
        return chuchangriqi;
    }

    public void setChuchangriqi(LocalDate chuchangriqi) {
        this.chuchangriqi = chuchangriqi;
    }

    public String getBaozhiqi() {
        return baozhiqi;
    }

    public void setBaozhiqi(String baozhiqi) {
        this.baozhiqi = baozhiqi;
    }

    public String getShangpinxiangqing() {
        return shangpinxiangqing;
    }

    public void setShangpinxiangqing(String shangpinxiangqing) {
        this.shangpinxiangqing = shangpinxiangqing;
    }

    public String getTupian() {
        return tupian;
    }

    public void setTupian(String tupian) {
        this.tupian = tupian;
    }

    public Integer getThumbsupnum() {
        return thumbsupnum;
    }

    public void setThumbsupnum(Integer thumbsupnum) {
        this.thumbsupnum = thumbsupnum;
    }

    public Integer getCrazilynum() {
        return crazilynum;
    }

    public void setCrazilynum(Integer crazilynum) {
        this.crazilynum = crazilynum;
    }

    public LocalDateTime getClicktime() {
        return clicktime;
    }

    public void setClicktime(LocalDateTime clicktime) {
        this.clicktime = clicktime;
    }

    public Integer getClicknum() {
        return clicknum;
    }

    public void setClicknum(Integer clicknum) {
        this.clicknum = clicknum;
    }

    public Integer getJifen() {
        return jifen;
    }

    public void setJifen(Integer jifen) {
        this.jifen = jifen;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }
}
